Skip to content

fix(antigravity): accept sdk_options.effort under the docker driver - #274

Merged
bai-uipath merged 1 commit into
mainfrom
bai/antigravity-effort-docker
Dec 4, 2026
Merged

bai-uipath merged 1 commit into
mainfrom
bai/antigravity-effort-docker

Conversation

@bai-uipath

Copy link
Copy Markdown
Collaborator

Motivation

Changes

  • check_single_effort_source compares thinking_level by value, not by model_fields_set. This is the rule SimulationConfig already uses for the same round trip. sdk_options.effort overrides the default medium; a different thinking_level that is not medium is still an error.
  • Behavior change: thinking_level: medium set explicitly, plus a different sdk_options.effort, is now accepted and the effort applies. Before, it was a validation error.
  • The Antigravity guide and the sdk_options field description say this.
  • Two tests: the effort overrides the default, and the effort survives the model_dump() round trip. Both fail on main with the validation error above.

Validation

Check main This PR
New tests 2 fail (ValidationError) pass
Antigravity task, driver: docker, -D agent.sdk_options.effort=high ERROR: container exits 1, "sdk_options.effort 'high' and thinking_level 'medium' both set the thinking level" SUCCESS, score 1.0 in 178s; antigravity_thinking_level: high recorded
  • The docker row ran one BPMN authoring task with gemini-4-hydrogen. Both sides used the same base image, with only the coder-eval wheel swapped on the host and in the image.
  • make verify passes except for four tests that fail the same way on main on this machine: the three test_stats_nonfinite NaN cases (Python 3.13.7) and a context-window test that reads CLAUDE_CODE_AUTO_COMPACT_WINDOW from the calling shell.

🤖 Generated with Claude Code

The docker driver re-validates a model_dump() of the task, which marks the
default thinking_level as set, so any sdk_options.effort other than medium
failed check_single_effort_source inside every container. Compare
thinking_level by value: the effort overrides the default, and a different
thinking_level that is not the default is still an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bai-uipath
bai-uipath marked this pull request as ready for review December 4, 2026 23:15
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Claude Code is working…

I'll analyze this and get back to you.

View job run

@bai-uipath
bai-uipath merged commit 1ed1642 into main Dec 4, 2026
21 of 22 checks passed
@bai-uipath
bai-uipath deleted the bai/antigravity-effort-docker branch December 4, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants